package reflection;

/**
 * @ClassName User
 * @Description TODO
 * @Author liang
 * @Date 2018/10/17 15:54
 * @Version 1.0
 **/
public class User {
    private int id;
    private String name;

    public User(){
        System.out.println("user ...");
    }
    public User(String name){
        System.out.println("user "+name);
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void say(String word){
        System.out.println("say ..."+word);
    }
}
